package fegincosumerapp.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import pojo.User;

@FeignClient("nacos-provider")
public interface UserFeignClient {
    @GetMapping("/findId/{id}")
    User getUser(@PathVariable Integer id);

    @GetMapping("/consumer/findId")
    User getUser(@RequestParam Integer id, @RequestParam String nam);



}
